-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add full clone setting for prebuilds #20177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
2ac11f2
to
3148a29
Compare
components/dashboard/src/repositories/detail/prebuilds/PrebuildSettingsForm.tsx
Outdated
Show resolved
Hide resolved
✅ Shared test result
|
I will address feedback later |
Thank you for the nice PR @mustard-mh ! 🙏 One aspect is not covered, though, which is the no-prebuild case: There, we still require the full ~7mins for the "unshallow", where SCM extensions are not usable, because the How do you think we could tackle that issue, especially in the context of this change:
|
Code mostly LGTM, I like this suggestion, the rest if more nits/minor suggestions. ✔️ I tried to test, but somehow my |
@geropl It takes time to clone, you may need to open workspace and wait for 10 minutes to get the log |
@geropl I thought we don't need to deal with no-prebuild case
|
Co-authored-by: Filip Troníček <[email protected]> Co-authored-by: Gero Posmyk-Leinemann <[email protected]>
9d4a9f0
to
3af6e9f
Compare
We have, at least in the wider context, because we need to support opening big(ger) repositories, without blocking SCM integrations. Let's tackle that in a separate PR. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay:
Code LGTM, tested and works! ✔️ 💪
Description
Improve large repository workspace startup performance by fully clone repository in prebuilds phase (download + unzip speed is faster than SCM processing)
Related Issue(s)
Fixes ENT-730
How to test
SUPERVISOR_DEBUG_ENABLE=true
to preview env's environments https://hw-large-repo.preview.gitpod-dev.com/user/variables so that we get debug logs from supervisorws-daemon
>clone repository took
unshallow of local repository took
ws-daemon
>clone repository took
ws-daemon
>aria2c download duration
,extract tarbal duration
unshallow of local repository took
ws-daemon
>clone repository took
ws-daemon
>aria2c download duration
,extract tarbal duration
unshallow of local repository took
3-b + 3-c
should less than1-a + 1-c
and2-a + 2-b + 2-c
git lg
)✅ Shared test result
prebuild
49.110767306sprebuild
4m50.046374877saccessable
accessable
accessable
access=53s
,performance=7m35s
access=27.6s
,performance=7m
access=59s
,performance=0s
Documentation
Preview status
Gitpod was successfully deployed to your preview environment.
Build Options
Build
Run the build with werft instead of GHA
Run Leeway with
--dont-test
Publish
Installer
Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Saves cost. Untick this only if you're really sure you need a non-preemtible machine.
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh
. If enabled,with-preview
andwith-large-vm
will be enabled./hold